[NTG-context] Re: Weird (?) float placement for specific widths of image

2024-04-19 Thread Pablo Rodriguez via ntg-context
e I cannot just adjust > slightly adjust the dimensions to get rid of that. It seems that you can place the figures somehow (https://www.pragma-ade.nl/general/qrcs/setup-en.pdf#page=169): See the extreme example: \showframe\showgrid\showstruts \setupexternalfigures [location={lo

[NTG-context] Re: Struggling with the distance and right margin text

2024-03-22 Thread Ursula Hermann
: Struggling with the distance and right margin text On 3/15/24 14:06, Ursula Hermann wrote: > Dear List, Dear Ursula, this might help you (it isn’t perfect, but you just seem to copy and paste fragments from your source files): %\showframe\showstruts \mainlanguage[de-at] \setuppagenumber

[NTG-context] Re: Struggling with the distance and right margin text

2024-03-15 Thread Pablo Rodriguez via ntg-context
On 3/15/24 14:06, Ursula Hermann wrote: > Dear List,  Dear Ursula, this might help you (it isn’t perfect, but you just seem to copy and paste fragments from your source files): %\showframe\showstruts \mainlanguage[de-at] \setuppagenumbering[alternative=doublesided] \definemargind

[NTG-context] Re: increase vertical between underbrace and equation

2023-12-19 Thread Mikael Sundqvist
> I hope I'm missing something simple... Any help would be greatly appreciated! > > DY Hung One could enforce consistent spacing by doing (add \showstruts) \underbrace{x + y + z}_{\topstrut\mtext{my text here}} but it would perhaps make more sense to be able to do \underbrace[toptext=...,b

[NTG-context] Re: numbered itemize list item label alignment

2023-10-15 Thread Pablo Rodriguez
tried the below code but the 3 digit labels' left sides go into the > left margin. How can I fix it? Hi Csikos, width is the key, such as in: \showframe\showgrid\showstruts \starttext \startitemize[n,broad][width=.125tw, itemalign=flushright] \dorecurse{250}{\item } \stopitemize

[NTG-context] Re: item list inside a blockquote

2023-09-26 Thread Wolfgang Schuster
: \showframe\showgrid\showstruts \setuppapersize[A6] \setupitemgroup [itemize][1] [ before={\blank[quarterline]}, after={\blank[quarterline]\null}] \starttext one \startblockquote \startitemize \item

[NTG-context] Re: item list inside a blockquote

2023-09-26 Thread Pablo Rodriguez
On 9/26/23 12:52, gerard.degreve wrote: > Hello Pablo, > > Just try to do this : >> \setupitemgroup >> [itemize][1] >> [ before={\blank[.125th]}, >> after={\blank[.125th]}\strut] Hi Gerard, this also works with \null, but not well with small dimensions:

Re: [NTG-context] new upload

2022-12-27 Thread Floris van Manen via ntg-context
cell three \NC \darkblue cell three \NC \NR \TM[a] \NC \darkred cell four \NC \darkgray cell four \NC \NR \TM[b] \NC \darkgreen cell four \NC \darkblue cell four \NC \NR \stoptabulate \stopbuffer \start \showmakeup[line] \showstruts \ruledvbox{\getbuffer[b]} \stop \start

[NTG-context] new upload

2022-12-27 Thread Hans Hagen via ntg-context
Hi, I uploaded lmtx. There have been some additions to tabulate. \starttext % \showboxes % \showstruts \starttabulate[|w(top,3cm)|w(top,3cm)|] \NC test \NC test \par test \NC \NR \NC test \NC test \par test \NC \NR \stoptabulate \starttabulate[|w(top,packed,3cm)|w(top,packed,3cm)|] \NC test

Re: [NTG-context] \showstruts displaces text in LMTX

2022-10-19 Thread Hans Hagen via ntg-context
On 10/19/2022 8:48 PM, Pablo Rodriguez via ntg-context wrote: Dear list, compiling the following sample with current latest (2022.10.15 10:37): \showframe \showstruts \setuppapersize[A6] \setupnotation[footnote] [alternative=serried] \starttext a\footnote{\input zapf

[NTG-context] \showstruts displaces text in LMTX

2022-10-19 Thread Pablo Rodriguez via ntg-context
Dear list, compiling the following sample with current latest (2022.10.15 10:37): \showframe \showstruts \setuppapersize[A6] \setupnotation[footnote] [alternative=serried] \starttext a\footnote{\input zapf} \stoptext I get the text in the footnote is displaced. It only

[NTG-context] pages with facing text

2022-06-06 Thread Pablo Rodriguez via ntg-context
Dear list, mixing the info that Wolfgang posted on this list some time ago (https://mailman.ntg.nl/pipermail/ntg-context/2016/087629.html), I tried to create a sample for facing pages with different streams: \showframe\showgrid\showstruts \starttext \startoutputstream[one

[NTG-context] new upload

2022-04-19 Thread Hans Hagen via ntg-context
,top=,bottom=] {% \begstrut \samplefile{tufte} \endstrut \par \adaptivevbox [strut=yes,setups=adaptive:test:a] {\showstruts\strut\hsize5cm\hss}% \par \adaptivevbox [strut=yes,setups=adaptive:test:b] {\showstruts\strut\hsize5cm\hss}% \par \begstrut

Re: [NTG-context] new upload, new trickery

2021-11-16 Thread Marcus Vinicius Mesquita via ntg-context
ult). New is that we can also influence the > order: after vs before preceding \vadjust in the same line. Also new is > that deeply nested adjustments can migrate (so the hole los: marks, > inserts and vadjust are now in sync) which is demonstrated with the next > example: > > \startt

[NTG-context] new upload, new trickery

2021-10-28 Thread Hans Hagen via ntg-context
line. Also new is that deeply nested adjustments can migrate (so the hole los: marks, inserts and vadjust are now in sync) which is demonstrated with the next example: \starttext \showstruts \input tufte \removeunwantedspaces\space \localleftbox par {% \hbox to 0pt

Re: [NTG-context] First line of larger font paragraph on grid

2021-06-28 Thread denis.maier
it leads to results I didn't expect: \blank[force,3*line,depth] -> four empty lines instead of three. 2. foregroundstyle={\bfe\setupinterlinespace[line=17.5pt]} works sort of with the default fonts, i.e. the visuals are ok, but with \showstruts enabled, you see that the struts are incorr

Re: [NTG-context] xtable as list item (again)

2021-06-17 Thread Pablo Rodriguez
On 6/16/21 9:56 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 15.06.2021 um 19:57: >>[...] >>\showframe\showstruts >>\starttext >>\startitemize[n][margin=yes] >>\item a >>\item >> \startembeddedxtable[option={stret

Re: [NTG-context] xtable as list item (again)

2021-06-16 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 15.06.2021 um 19:57: Dear list, I already posted a similar question some time ago (https://mailman.ntg.nl/pipermail/ntg-context/2021/101021.html), but I got no reply. I have the following sample: \showframe\showstruts \starttext \startitemize[n][margin=yes

[NTG-context] xtable as list item (again)

2021-06-15 Thread Pablo Rodriguez
Dear list, I already posted a similar question some time ago (https://mailman.ntg.nl/pipermail/ntg-context/2021/101021.html), but I got no reply. I have the following sample: \showframe\showstruts \starttext \startitemize[n][margin=yes] \item a \item \startembeddedxtable[option

Re: [NTG-context] \framed command: (strange ?) difficulty to control the interlinespace between the first and the second line

2020-11-16 Thread Wolfgang Schuster
the other examples. You can add \showstruts at the begin of your document to see the effect of \strut. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : n

Re: [NTG-context] (bug?) wrong interline in \placelist[alternative=d] with Pagella italics

2020-03-15 Thread Wolfgang Schuster
of the problem, the \setstrut setting changes the height of the strut for the italic font. begin example \showstruts \setupbodyfont[pagella] \starttext \dontleavehmode\it \ruledhbox{\strut Section} \ruledhbox{\setstrut\strut Section} \stoptext end example Most fonts (I checked only

Re: [NTG-context] \setnostrut

2016-12-16 Thread Hans Hagen
On 12/15/2016 8:59 PM, Herbert Voss wrote: Shouldn't the last frame not be the same as the one with strut=no?? \starttext X\framed{ag}X\framed[strut=no]{ag}X\framed{\setnostrut ag} \stoptext in the second case the (begin)strut is already placed, compare: \starttext \showstruts X\framed

[NTG-context] Issue with \blank halfline and title heads

2016-10-16 Thread josephcanedo
fine, followed by sample chapter which shows that ‘E’ is above the grid base line (added \showgrid to make it visible). Do I need to put the title content in some box ? Thanks a lot for any hint, Best regards Joseph \showgrid\showstruts \setuplayout[grid=both] \definehead[Chapter][subsection

[NTG-context] Blank line before placehead=empty

2015-06-02 Thread Kate F
\showgrid \showstruts \starttext \startchapter[title={Something}] cows cows hasselt \stopchapter \stoptext Thank you, -- Kate ___ If your question is of interest to others as well, please add an entry to the Wiki

Re: [NTG-context] Blank line before placehead=empty

2015-06-02 Thread Pablo Rodriguez
, not to the TOC. At least, this sample works: \setuphead[chapter][placehead=no] \showgrid \showstruts \starttext \completecontent \dorecurse{10}{\startchapter [title={My Chapter}] cows cows hasselt \stopchapter} \stoptext Or have I misread your

Re: [NTG-context] wrong vertical spacing in latest beta

2015-04-16 Thread Pablo Rodriguez
need to make sure you enforce the proper ht and dp is needed \begstrut ... \endstrut can be used for that most mechanisnm in context deal with this themselves (for instance framed and tables .. tables would look horrible otherwise) (try \showstruts before \starttext so see where

Re: [NTG-context] wrong vertical spacing in latest beta

2015-04-16 Thread Hans Hagen
\currentdate \par x\par}\blank \ruledvbox{x\tf \setupinterlinespaceurl \par x\par}\blank \stopbuffer \starttext \showstruts \getbuffer[a] \page \getbuffer[b] \stoptext you can use use \begstrut ... \endstrut in such local situations

Re: [NTG-context] wrong vertical spacing in latest beta

2015-04-16 Thread Hans Hagen
\setupinterlinespaceurl \par x\par}\blank \stopbuffer \starttext \showstruts \getbuffer[a] \page \getbuffer[b] \stoptext you can use use \begstrut ... \endstrut in such local situations Many thanks for your help, Hans. I have seen strut in the past, but I’m afraid

Re: [NTG-context] wrong vertical spacing in latest beta

2015-04-16 Thread Pablo Rodriguez
\par x\par}\blank \stopbuffer \starttext \showstruts \getbuffer[a] \page \getbuffer[b] \stoptext you can use use \begstrut ... \endstrut in such local situations Many thanks for your help, Hans. I have seen strut in the past, but I’m afraid that I don’t know

Re: [NTG-context] \margintext / \inmargin doesn't work as only thing after header

2015-03-19 Thread Hans Hagen
On 3/19/2015 1:55 PM, Philipp A. wrote: thank you! what’s \strut? can’t find it in the wiki… add \showstruts at the top of your document and you'll see them (add \showmakup and you will be even more enlightened about tex's whatabouts) Hans Hagen pra...@wxs.nl mailto:pra...@wxs.nl schrieb

Re: [NTG-context] fluctuating baseline of header text

2014-12-28 Thread j. van den hoff
On Sun, 28 Dec 2014 00:45:32 +0100, Hans Hagen pra...@wxs.nl wrote: -- could such behaviour be achieved presently with some clever trick? \showstruts \setuppagenumbering[style=\bfd\setcharstrut{0123456789}\strut,strut=no] - no default strut - calculate one based on to-be-used-characters

Re: [NTG-context] fluctuating baseline of header text

2014-12-28 Thread Hans Hagen
On 12/28/2014 12:39 PM, j. van den hoff wrote: On Sun, 28 Dec 2014 00:45:32 +0100, Hans Hagen pra...@wxs.nl wrote: -- could such behaviour be achieved presently with some clever trick? \showstruts \setuppagenumbering[style=\bfd\setcharstrut{0123456789}\strut,strut=no] - no default strut

Re: [NTG-context] fluctuating baseline of header text

2014-12-27 Thread Hans Hagen
when you mix sizes .. there is no general solution (at least not one that would break other usage) -- if desirable, could/should it be done? -- could such behaviour be achieved presently with some clever trick? \showstruts \setuppagenumbering[style=\bfd\setcharstrut{0123456789}\strut,strut

Re: [NTG-context] Linetables

2014-09-26 Thread Willi Egger
=color,backgroundcolor=gray] \setuplinetable[r][even][background=color,backgroundcolor=green] \showframe \showstruts \setupcolors[state=start] \startlinetable \NC aaa\crlf aaa \NC bb \NC c \NC d \NC \NC ff \NC \NR \dorecurse{100}{\NC aaa \NC bb \NC c \NC d \NC \NC ff \NC

[NTG-context] Linetables

2014-09-23 Thread Willi Egger
] \showframe \showstruts \setupcolors[state=start] \startlinetable \NC aaa\crlf aaa \NC bb \NC c \NC d \NC \NC ff} \NC \NR \stoplinetable \stoptext However with and without the dorecurse commands in it i get the following error: Missing number, treated as zero to be read again d \s

Re: [NTG-context] Linetables

2014-09-23 Thread Herbert Voss
,backgroundcolor=yellow] \setuplinetable[l][6] [width=3cm,background=color,backgroundcolor=magenta] \setuplinetable[r][odd] [background=color,backgroundcolor=gray] \setuplinetable[r][even][background=color,backgroundcolor=green] \showframe \showstruts \setupcolors[state=start] \startlinetable \NC

Re: [NTG-context] Wrong pagenumber in index

2014-04-15 Thread Hans Hagen
Where do you expect a page break? And how robust can that be implemented? Normally you woudl expect the index to be bound to the second text (think of broken lines/words). So .. the index commands tries to bind to the following text. \showstruts \index{x}\strut Hans

Re: [NTG-context] Linespacing in TOC

2013-11-22 Thread Hans Hagen
using a better font: if interlinespace is too small you will never get nice results you can try to play with the h/d ratio: \setupinterlinespace[line=2.8ex,height=0.8,depth=0.2] \showstruts \strut x \setupinterlinespace[line=2.8ex,height=0.7,depth=0.3] \showstruts \strut x or you can plug

Re: [NTG-context] bug? gap appears in columnset

2013-09-17 Thread Hans Hagen
to be *part* of the distance between baselines, rather than an additional distance. But maybe that's not important to the main issue. \starttext \showstruts \strut test \par \strut test \showstruts \strut \ruledhbox{$\sqrt{test}$} \par \strut test \stoptext \lineskip (1pt by default) kicks in when

[NTG-context] Fwd: Re: beta / initials

2013-08-28 Thread Hans Hagen
Hopefully fixed ... in the process i decided to experiment with a better auto sizing .. there is now SomeFont ht somedimen : scale to ascender height SomeFont cp somedimen : scale to X height example: \setupbodyfont[dejavu] \starttext \start \showstruts {\type{at}: TEST \strut\definedfont

[NTG-context] wrong space when compressseparator is empty

2013-06-26 Thread Pablo Rodríguez
Dear Hans, I have the following sample: \showstruts \setupnote[linenote][paragraph=yes, inbetween=\hskip1.5em] \setupnotation[linenote][alternative=serried, compress=yes, compressseparator=, distance=1em] \starttext \startlinenumbering \dorecurse{500}{text\linenote

[NTG-context] Grid typesetting: aligning section to top of textarea

2013-05-13 Thread Sietse Brouwer
\showstruts %% Example text \starttext \subject{The hoard of the gibbelins} The Gibbelins eat, as is well known, nothing less good than man. \startsubject[ title={How Nyth would have worked his art upon the gnoles}, marking=How Nuth would have worked his art, ] Despite

[NTG-context] Fwd: Re: something about the placelist

2012-10-24 Thread Hans Hagen
with \showstruts and you see what happens) string %%this is the string % \placelist [section] [alternative=d, % command, % none, maxwidth=\hsize, width=\hsize, maxwidth=75pt

Re: [NTG-context] Fwd: Re: something about the placelist

2012-10-24 Thread feng
that if there is a string before the \placelist the null string is disappear. like this: \setuplist[section][before=] \framed[background=frame_mp,frame=on,align=middle,width=80pt]{% add: strut=no to the \framed command (first run with \showstruts and you see what happens) string %%this is the string

[NTG-context] beta

2012-06-27 Thread Hans Hagen
into it). As they are often used for testing, \ruledhbox, \ruledvbox and \ruledvtop remained and all the others have been replaced by placeholders (and might go away). The \show* commands are mostly dummies (and will disappear) but these remain: \showmakeup \showallmakeup \showstruts \showglyphs Hopefully this doesn't

Re: [NTG-context] beta

2012-06-27 Thread Otared Kavian
, \ruledvbox and \ruledvtop remained and all the others have been replaced by placeholders (and might go away). The \show* commands are mostly dummies (and will disappear) but these remain: \showmakeup \showallmakeup \showstruts \showglyphs Hopefully this doesn't spoil your playing

Re: [NTG-context] Interlinespace in layers

2011-12-05 Thread Hans Hagen
On 5-12-2011 01:39, Jan Heinen wrote: I solved the problem myself: First I used \showstruts to se struts - and only before and after the first line there were struts. Then I added the following argument into the \setlayerframed: strut=no \setlayerframed [Kontaktdaten] [ width=80mm, height

Re: [NTG-context] Interlinespace in layers

2011-12-04 Thread Jan Heinen
I solved the problem myself: First I used \showstruts to se struts - and only before and after the first line there were struts. Then I added the following argument into the \setlayerframed: strut=no \setlayerframed [Kontaktdaten] [ width=80mm, height=180mm, hoffset=50mm

Re: [NTG-context] no strut in \framed

2011-09-05 Thread Peter Rolf
Am 05.09.2011 00:39, schrieb Hans Hagen: On 4-9-2011 20:23, Peter Rolf wrote: Am 04.09.2011 18:48, schrieb Hans Hagen: On 4-9-2011 18:38, Peter Rolf wrote: Hi, I get no strut in \framed when using 'offset=overlay' or 'offset=none'. \setupcolors[state=start] \starttext \showstruts

[NTG-context] no strut in \framed

2011-09-04 Thread Peter Rolf
Hi, I get no strut in \framed when using 'offset=overlay' or 'offset=none'. \setupcolors[state=start] \starttext \showstruts \framed[offset=1pt]{abc} % ok \framed[offset=overlay]{abc} \framed[offset=none]{abc} \stoptext Same for both marks. mtx-context | current version: 2011.08.27 13

Re: [NTG-context] no strut in \framed

2011-09-04 Thread Hans Hagen
On 4-9-2011 18:38, Peter Rolf wrote: Hi, I get no strut in \framed when using 'offset=overlay' or 'offset=none'. \setupcolors[state=start] \starttext \showstruts \framed[offset=1pt]{abc} % ok \framed[offset=overlay]{abc} \framed[offset=none]{abc} \stoptext Same for both marks. indeed

Re: [NTG-context] no strut in \framed

2011-09-04 Thread Peter Rolf
Am 04.09.2011 18:48, schrieb Hans Hagen: On 4-9-2011 18:38, Peter Rolf wrote: Hi, I get no strut in \framed when using 'offset=overlay' or 'offset=none'. \setupcolors[state=start] \starttext \showstruts \framed[offset=1pt]{abc} % ok \framed[offset=overlay]{abc} \framed[offset=none

Re: [NTG-context] no strut in \framed

2011-09-04 Thread Hans Hagen
On 4-9-2011 20:23, Peter Rolf wrote: Am 04.09.2011 18:48, schrieb Hans Hagen: On 4-9-2011 18:38, Peter Rolf wrote: Hi, I get no strut in \framed when using 'offset=overlay' or 'offset=none'. \setupcolors[state=start] \starttext \showstruts \framed[offset=1pt]{abc} % ok \framed[offset

[NTG-context] \startlinetable

2010-11-13 Thread Herbert Voss
] \setuplinetable[r][odd] [background=color,backgroundcolor=gray] \setuplinetable[r][even][background=color,backgroundcolor=green] \starttext \showframe \showstruts \setupcolors[state=start] \startlinetable \dorecurse{5}{\NC aaa\crlf aaa \NC bb \NC c \NC d \NC \NC ff} \NC \NR \dorecurse{100}{\dorecurse

Re: [NTG-context] header setting

2010-10-20 Thread Hans Hagen
\showstruts helps with that - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com

[NTG-context] \framed[height=broad] vs \framed[height=fit]

2010-04-20 Thread Aditya Mahajan
Hi, I was updating the wiki page on \framed and realized that I do not know the difference between height=broad|fit in \framed. Reading pack-rul suggests that both should behave similarly. The following example from pack-rul also shows no difference. \starttext \bgroup \showstruts

[NTG-context] \framed[location=top] and slanted tex gyre bonum

2010-04-05 Thread Vianney le Clément
or am I doing something wrong? Vianney \showstruts \usemodule[simplefonts] \setmainfont[Tex Gyre Bonum] \setupframed [frame=none, offset=0pt, location=top] \defineoverlay[bg][] \starttext \strut First line\par \strut Second line\par \strut Third line\par \blank \strut First line\par \framed

Re: [NTG-context] interlinespace confusion (MkIV)

2010-03-12 Thread Peter Rolf
. and 2. line (caused by different struts) % \setupinterlinespace[line=16pt]% - bodytext interlinespace disturbed } \setuphead[chapter] [grid=both,style=\MyChapter] \starttext \showframe \showgrid \showstruts \chapter{Éç\par Éç\par Éç\par Éç} Éç\par Éç\par Éç\par ÉÃ

Re: [NTG-context] interlinespace confusion (MkIV)

2010-03-12 Thread Hans Hagen
automatically i added a key 'interlinespace' so that you cna say: \usetypescript[postscript] \setupbodyfont[postscript,10pt] \setupinterlinespace[line=20pt] \def\MyChapter {\switchtobodyfont[rm,13pt]% \setuplocalinterlinespace[line=30pt]} \showstruts \defineinterlinespace[bagger][line=50pt

Re: [NTG-context] how to set \lineskiplimit-\maxdimen

2010-03-11 Thread Peter Rolf
\showframe \showstruts \showgrid \input tufte \par \startquotetest \input tufte \par \stopquotetest \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg

[NTG-context] Jumping headers

2009-10-29 Thread Andreas Harder
\setupheadertexts[chapter][section] % try this % \setupheadertexts[\setups{head}] % or this \startsetups[head] \framed [width=broad,strut=yes,height=\lineheight,framecolor=red] {\getmarking[chapter]\hfill\getmarking[section]} \stopsetups \starttext \showstruts \showframe[text] \chapter{ÄÖÜy

Re: [NTG-context] Jumping headers

2009-10-29 Thread Hans Hagen
] % strut=yes \setupheadertexts[chapter][section] % try this % \setupheadertexts[\setups{head}] % or this \startsetups[head] \framed [width=broad,strut=yes,height=\lineheight,framecolor=red] {\getmarking[chapter]\hfill\getmarking[section]} \stopsetups \starttext \showstruts

Re: [NTG-context] Jumping headers

2009-10-29 Thread Andreas Harder
]} \stopsetups \starttext \showstruts \showframe[text] \chapter{ÄÖÜy} \section{ÄÖÜy} \dorecurse{3}{% \dorecurse{3}{\input tufte \par} \startblockquote \dorecurse{3}{\input tufte \par} \stopblockquote} \stoptext Can you see the header jumping? What can one do to avoid this behavior? kind of tricky

Re: [NTG-context] interline spacing, me too

2009-10-15 Thread Peter Rolf
add a \showstruts to your document (after \starttext), you will see two big struts on both sides of the chapter number. looks like these struts (~80pt) cause the trouble here. hth, peter Thank you in advance Andreas

Re: [NTG-context] problem with layers and line spacing

2009-08-12 Thread Hans Hagen
\framed. With offset=overlay or offset=none, it is only necessary to \switchtobodyfont inside \framed. spacing inside framed is also determined by the strut (use \showstruts to see what happens) and when you use the foregroundstyle or setup keys the strut will adapt itself to the bodyfont

Re: [NTG-context] Extra Whitespace in Footer.

2009-07-09 Thread luigi scarso
to be that the footer automatically inserts some whitespace above my framed text. The intent is for it to be flush to the top of the footer. What do I need to change? footerdistance settting footerdistance to 0cm doesn't seem to change anything. there is a strut: try \showstruts By default

Re: [NTG-context] Centering an image in framed.

2008-12-03 Thread Hans Hagen
over the place, so 400 attemps is a good start; when playing, say \showstruts and you'll see where context adds struts Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061

Re: [NTG-context] \definefont problem with latest beta (mkiv)

2008-11-14 Thread Peter Rolf
' \showstruts 2.8ex: \the\dimexpr2.8ex\par \strut qgjyQWT\par 1ex: \the\dimexpr 1ex\par \setbox0\hbox{x}ht(x):\the\ht0\par 2.8*ht(x): \the\dimexpr2.8\ht0 if you look at the font it's pretty clear that it has a large x-height so you can best use a different interline specification, like x\strut

Re: [NTG-context] \definefont problem with latest beta (mkiv)

2008-11-13 Thread Peter Rolf
] \ifnum\contextmarkmode=4 \usetypescript[tahoma] \else \usetypescript[ms] [tahoma] \fi \setupbodyfont[tahoma] \starttext \startTEXpage \showstruts \tfd \setstrut \framed[strut=no]{\ruledhbox{\begstrut tfd: qgjyQWT\endstrut}} \stopTEXpage \stoptext %% TTF (part of Windows XP) \ifnum

Re: [NTG-context] \definefont problem with latest beta (mkiv)

2008-11-12 Thread Hans Hagen
. And you can't call a 12.6pt strut for a 8pt font a slight change. :) I will (try to) make a minimal example... \showstruts \start \tf \setstrut tf:\strut \tfa \setstrut tfa:\strut \tfb \setstrut tfb:\strut \tfc \setstrut tfc:\strut \tfd

[NTG-context] mkiv and \recycleMPslotstrue

2008-11-12 Thread Otared Kavian
in order to ignore the error. For instance this happens with the example given by Hans: \starttext \showstruts \start \tf \setstrut tf:\strut \tfa \setstrut tfa:\strut \tfb \setstrut tfb:\strut \tfc \setstrut tfc:\strut \tfd \setstrut tfd:\strut

Re: [NTG-context] mkiv and \recycleMPslotstrue

2008-11-12 Thread Hans Hagen
is produced, when I hit return in order to ignore the error. For instance this happens with the example given by Hans: \starttext \showstruts \start \tf \setstrut tf:\strut \tfa \setstrut tfa:\strut \tfb \setstrut tfb:\strut \tfc \setstrut tfc:\strut

Re: [NTG-context] \definefont problem with latest beta (mkiv)

2008-11-12 Thread Peter Rolf
slight differences. And you can't call a 12.6pt strut for a 8pt font a slight change. :) I will (try to) make a minimal example... \showstruts \start \tf \setstrut tf:\strut \tfa \setstrut tfa:\strut \tfb \setstrut tfb:\strut \tfc \setstrut tfc

[NTG-context] halfline broken

2008-02-05 Thread Steffen Wolfrum
\relax\relax\dimexpr.5\lineheight\relax \fi \else \ctxparskip\baselineskip % normal ! ! ! ! !! \fi \fi \else \ifwitruimteflexibel \else \ctxparskip1\ctxparskip \fi \fi \parskip\ctxparskip} \starttext \setuplayout[grid=yes] \showstruts

Re: [NTG-context] halfline broken

2008-02-05 Thread Peter Rolf
=yes] \showstruts \showgrid \showgridboxes \setupwhitespace[halfline] \setuphead[section][grid=fit] \section{Heading One} \input tufte \input knuth \stoptext ___ If your question is of interest

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
|margin|edge] \showgrid # \showgridboxes # \showgridsnapping \showlayout # \showlayoutcomponents \showmakeup \showpalet[name][horizontal|vertical|name|value] \showprint[typesetting papersize][printing papersize][settings] \showsetups \showstruts # \showstruts \showsymbolset[name] # \snaptogrid

Re: [NTG-context] How to make \framed ignore the width of the rule

2007-06-07 Thread Wolfgang Schuster
!protocolunitsize]{\let\\\crlf #2\\(#1)}% \protocolfieldheader[width=\dimexpr\c!protocolunitsize*#1\relax]{\let\\\crlf #2\\(#1)}% \incrementcounter{v!protocolheaderlength}{#1}} \protect % \showstruts % \showboxes \starttext % Why should unitsize=1mm. Are things being

Re: [NTG-context] How to make \framed ignore the width of the rule

2007-06-07 Thread David Arnold
}% \removeunwantedspaces \dontleavehmode \protocolfieldheader[width=#1\c!protocolunitsize]{\let\\\crlf #2 \\(#1)}% \protocolfieldheader[width=\dimexpr\c!protocolunitsize*#1\relax] {\let\\\crlf #2\\(#1)}% \incrementcounter{v!protocolheaderlength}{#1}} \protect % \showstruts

[NTG-context] lineskip in itemize

2007-04-24 Thread Jano Kula
locally to itemigroup fixes the problem. Jano ConTeXt ver: 2007.01.18 12:57 MKII %%% minimal example \enableregime[utf] \showgrid \showstruts %\setuplayout[grid=yes] %\setupitemgroup[itemize][before={\lineskiplimit=-10pt}] aaa bbb ccc Ú ddd eee \starttext \startitemize[packed] \item aaa

Re: [NTG-context] lineskip in itemize

2007-04-24 Thread Wolfgang Schuster
everything is OK. Changing \lineskiplimit locally to itemigroup fixes the problem. Jano ConTeXt ver: 2007.01.18 12:57 MKII %%% minimal example \enableregime[utf] \showgrid \showstruts %\setuplayout[grid=yes] %\setupitemgroup[itemize][before={\lineskiplimit=-10pt}] aaa bbb ccc Ú ddd eee

[NTG-context] Grid-keeping list (again)

2007-04-12 Thread Johannes Kuester
try the effect with the following example: %% \setuplayout[grid=yes, columns=2] \showgrid %\showstruts \usemodule[gridlist] \starttext \startcolumns[n=2, balance=no] %% (columns are not necessary to show the effect) \dorecurse{20}{ \zeichen{0001}{a}{first letter}{}% \zeichen{0002

Re: [NTG-context] Grid-keeping list (again)

2007-04-12 Thread Wolfgang Schuster
\stoplinecorrection, but none of these seems to work.) You could try the effect with the following example: %% \setuplayout[grid=yes, columns=2] \showgrid %\showstruts \usemodule[gridlist] \starttext \startcolumns[n=2, balance=no] %% (columns are not necessary to show the effect) \dorecurse{20

Re: [NTG-context] Grid-keeping table

2007-03-28 Thread Johannes Kuester
down what the problem really is). And the need to specify the number of rows is a problem in my case, as I would need to add a parameter to my macro etc. Johannes %% \setuplayout[grid=yes] \showgrid \showstruts \starttext \input tufte \starttabulate[|p(.1\textwidth)|p(.1\textwidth)|p

Re: [NTG-context] Grid-keeping table

2007-03-28 Thread Hans Hagen
%% all docs is in grid mode, % but the request was only for tables \showgrid \showstruts \starttext \input tufte \setupTABLE[r][each][height=\the\baselineskip] % default linespacing in ConTeXt \setupTABLE[c][1,2,4][width=.2\textwidth] \setupTABLE[c][3][width=.4\textwidth

Re: [NTG-context] Grid-keeping table

2007-03-28 Thread Peter Rolf
\showstruts \starttext \input tufte \starttabulate[|p(.1\textwidth)|p(.1\textwidth)|p(.5\textwidth)|p(.2\textwidth)|]% \NC 002B \NC $+$ \NC plus; Addition \NC \NR \NC 00D7 \NC $\times$ \NC kartesisches Produkt (von Mengen);\hfill\break

Re: [NTG-context] Grid-keeping table

2007-03-28 Thread Johannes Kuester
] [width=51mm] \setuplinetable[c][4] [width=1mm] and then startlinetable / stoplinetable instead of start/stoptabulate works fine for the vertical spacing problem. %% \setuplayout[grid=yes] \showgrid \showstruts \starttext \input tufte \starttabulate[|p(.1\textwidth)|p(.1

Re: [NTG-context] Grid-keeping table

2007-03-28 Thread Wolfgang Schuster
] \setuplinetable[c][2] [width=5mm] \setuplinetable[c][3] [width=51mm] \setuplinetable[c][4] [width=1mm] and then startlinetable / stoplinetable instead of start/stoptabulate works fine for the vertical spacing problem. %% \setuplayout[grid=yes] \showgrid \showstruts \starttext

Re: [NTG-context] Grid-keeping table

2007-03-27 Thread Peter Rolf
\setuplayout[grid=yes] \showgrid \showstruts \starttext \input tufte \setupTABLE[r][each][height=\the\baselineskip] % default linespacing in ConTeXt \setupTABLE[c][1,2,4][width=.2\textwidth] \setupTABLE[c][3][width=.4\textwidth] \setupTABLE[frame=on] \blank \bTABLE \bTR \bTD Axxx \eTD \bTD

Re: [NTG-context] Grid-keeping table

2007-03-27 Thread luigi scarso
) % \setuplayout[grid=yes] %P1 %% all docs is in grid mode, % but the request was only for tables \showgrid \showstruts \starttext \input tufte \setupTABLE[r][each][height=\the\baselineskip] % default linespacing in ConTeXt \setupTABLE[c][1,2,4][width=.2\textwidth] \setupTABLE[c][3][width=.4

Re: [NTG-context] Umlaut causes footnotline to jump

2007-03-16 Thread Steffen Wolfrum
a different \strut (same total height, but bigger height part). i think the \strut command is also the cause of the different appearance in your two examples (add \showstruts after \startext; \strut and Ö in the same line..). try something like setupinterlinespace[line=9.8pt,height=.79,depth=.21

Re: [NTG-context] Umlaut causes footnotline to jump

2007-03-15 Thread Hans Hagen
... to avoid a nightmare, is there a chance to set something like setupinterlinespace[line=9.8pt,height=.79,depth=.21] only locally, only for these footnotes affected? please wikify this: \starttext \hbox to \hsize \bgroup \showbaselines \showstruts \ruledvtop \bgroup \hsize.45

[NTG-context] split footnote bug

2007-02-26 Thread Steffen Wolfrum
=113mm,height=48\XVertikal, backspace=20mm,topspace=15mm, header=\XVertikal,headerdistance=0.5\XVertikal, footer=3.5\XVertikal,footerdistance=0pt, location=middle,marking=on,grid=yes] \showframe \showgrid \showgridboxes \showstruts \starttext \dorecurse{10}{\input ward

Re: [NTG-context] split footnote bug

2007-02-26 Thread Steffen Wolfrum
] \showframe \showgrid \showgridboxes \showstruts \starttext \dorecurse{10}{\input ward\footnote{\input tufte \relax}} \stoptext On page 2 the bottom most line slips down lower than on the other pages. I observed this behavior in a 450 pages book and the amount the bottom line goes down

Re: [NTG-context] grid vs. frame (+minimal example)

2007-02-19 Thread Steffen Wolfrum
\showstruts \starttext \dorecurse{10}{\input ward\footnote{\input tufte \relax}} \stoptext Look how the bottom most line on page 2 is about 1pt lower than on the other pages. When using height=\the\dimexpr48\XVertikal-2pt\relax, the bottom-lines of the red and the black frames are aligned

[NTG-context] grid versus whitespace

2007-01-18 Thread Steffen Wolfrum
Hi, please have a look at following example: \starttext \setupwhitespace[5pt] \setuplayout[grid=no] \showstruts \showgrid \showgridboxes \setuphead[section][grid=fit] \section{Heading One} \input tufte \input knuth \stoptext For the section is too high, I set grid=yes which gives

Re: [NTG-context] grid versus whitespace

2007-01-18 Thread Hans Hagen
Steffen Wolfrum wrote: Hi, please have a look at following example: \starttext \setupwhitespace[5pt] \setuplayout[grid=no] \showstruts \showgrid \showgridboxes \setuphead[section][grid=fit] \section{Heading One} \input tufte \input knuth \stoptext For the section is too high, I

[NTG-context] Problems mapping Xml into ConTeXt

2006-10-10 Thread Michael Wigston
e={\starttextbackground[ul] }, % after={\stoptextbackground\fixedspaces}] after={\stoptextbackground\ }] % Other mappings \defineXMLgrouped [right] \rightaligned \defineXMLgrouped [centre] \midaligned \defineXMLgrouped [em] \em \defineXMLsingular [br] [nr=1] {\blank[\XMLop{nr}*medium

Re: [NTG-context] strutheight and (german) umlauts

2006-08-28 Thread Hans Hagen
Peter Rolf wrote: Hi, I just run into the problem, that \strutheight is lower than the height of some german umlauts (���). % - \setupoutput[pdftex] \mainlanguage[german] \setupcolors[state=start] \starttext \showstruts \def\FOO#1{\framed[frame=off,background=color

Re: [NTG-context] strutheight and (german) umlauts

2006-08-28 Thread Peter Rolf
Hans Hagen wrote: Peter Rolf wrote: Hi, I just run into the problem, that \strutheight is lower than the height of some german umlauts (���). % - \setupoutput[pdftex] \mainlanguage[german] \setupcolors[state=start] \starttext \showstruts \def\FOO#1{\framed[frame=off,background

Re: [NTG-context] strutheight and (german) umlauts

2006-08-28 Thread Hans Hagen
Peter Rolf wrote: Hans Hagen wrote: Peter Rolf wrote: Hi, I just run into the problem, that \strutheight is lower than the height of some german umlauts (���). % - \setupoutput[pdftex] \mainlanguage[german] \setupcolors[state=start] \starttext \showstruts \def\FOO#1

  1   2   >